package cn.xiaomubiao.oschine;

import android.app.Application;
import android.os.Handler;
import android.os.Message;

import com.uuzuche.lib_zxing.activity.ZXingLibrary;

import cn.xiaomubiao.oschine.cache.CacheUtils;

/**
 * @author 张伟斌
 * 自定义的Application
 */

public class MyApplication extends Application {

    public static MyApplication mApp; // 当前引用
    public static Handler mHandler; //handler引用
    public static CacheUtils cacheUtils;


    @Override
    public void onCreate() {
        super.onCreate();

        mApp=this;
        mHandler=new Handler(){
            @Override
            public void handleMessage(Message msg) {
                super.handleMessage(msg);
            }
        };
        cacheUtils = new CacheUtils();
        ZXingLibrary.initDisplayOpinion(this);

    }
}
